<template>
	<view> 
		<div class="box" v-for="item in data" :key="item.id">
			<div class="box1">
				<img :src="item.doctorHeadImg" alt="">
			</div>
			<div class="box2">
				<div class="box11">
					{{item.doctorName}}
				</div>
				<div class="box22">
					{{item.doctorDepartment}}
				</div>
				<div class="box33">
					{{item.doctorAnswer}}回答{{item.doctorShowting}}人收听
				</div>
			</div>
			<div class="box3">
				<div class="box5">
					已关注
				</div>
				<div class="img">
					<img src="../../static/psx/耳机.png" alt="">
				</div>
			</div>
		</div>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data:[]
			};
		},
		created() {
			this.$api.getMjtGuanzhu().then(res=>{
				this.data=res.data
				console.log(this.data)
			})
		},
	}
</script>

<style lang="scss">
	.box {
		width: 90%;
		margin: auto;
		height: 160rpx;
		display: flex;
		justify-content: space-evenly;
		align-items: center;
		border-bottom: 1rpx solid #cbcbcb;

		.box1 {
			width: 110rpx;
			height: 110rpx;
			// background-color: #8fc31f;
			border-radius: 50%;
			overflow: hidden;

			img {
				width: 100%;
				height: 100%;
			}
		}

		.box2 {
			width: 50%;
			// height: 100%;
			margin-top: -38rpx;
			display: flex;
			flex-direction: column;

			.box11 {
				// width: 97rpx;
				height: 40rpx;
				font-family: YouYuan;
				font-size: 32rpx;
				font-weight: normal;
				font-stretch: normal;
				line-height: 70rpx;
				letter-spacing: 2rpx;
				color: #323232;
			}

			.box22 {
				// width: 173rpx;
				height: 35rpx;
				font-family: YouYuan;
				font-size: 24rpx;
				font-weight: normal;
				font-stretch: normal;
				line-height: 70rpx;
				letter-spacing: 1rpx;
				color: #646464;
			}

			.box33 {
				// width: 252rpx;
				height: 30rpx;
				font-family: MicrosoftYaHeiLight;
				font-size: 24rpx;
				font-weight: normal;
				font-stretch: normal;
				line-height: 70rpx;
				letter-spacing: 1rpx;
				color: #909090;

				.box {
					width: 64rpx;
					height: 21rpx;
					font-family: YouYuan;
					font-size: 22rpx;
					font-weight: normal;
					font-stretch: normal;
					letter-spacing: 0rpx;
					color: #8fc31f;
				}
			}
		}

		.box3 {
			width: 180rpx;
			height: 50rpx;
			border-radius: 25rpx;
			border: solid 2rpx #ff5722;
			display: flex;
			justify-content: space-evenly;
			align-items: center;

			.box5 {
				// width: 64rpx;
				// height: 21rpx;
				font-family: YouYuan;
				font-size: 22rpx;
				font-weight: normal;
				font-stretch: normal;
				letter-spacing: 0rpx;
				color: #8fc31f;
			}

			.img {
				width: 42rpx;
				height: 42rpx;

				img {
					width: 100%;
					height: 100%;
				}
			}
		}
	}
</style>
